.class Lcom/example/m6shop/DishesActivity22$mOncliclistener;
.super Ljava/lang/Object;
.source "DishesActivity22.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6shop/DishesActivity22;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "mOncliclistener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/DishesActivity22;


# direct methods
.method private constructor <init>(Lcom/example/m6shop/DishesActivity22;)V
    .locals 0

    .prologue
    .line 658
    iput-object p1, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/m6shop/DishesActivity22;Lcom/example/m6shop/DishesActivity22$mOncliclistener;)V
    .locals 0

    .prologue
    .line 658
    invoke-direct {p0, p1}, Lcom/example/m6shop/DishesActivity22$mOncliclistener;-><init>(Lcom/example/m6shop/DishesActivity22;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v6, 0x4

    const/4 v5, 0x0

    .line 662
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v3

    sparse-switch v3, :sswitch_data_0

    .line 753
    :goto_0
    return-void

    .line 665
    :sswitch_0
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3}, Lcom/example/m6shop/DishesActivity22;->finish()V

    goto :goto_0

    .line 669
    :sswitch_1
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->tv_count:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$0(Lcom/example/m6shop/DishesActivity22;)Landroid/widget/TextView;

    move-result-object v3

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 670
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->iv_del:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$1(Lcom/example/m6shop/DishesActivity22;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 671
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget v4, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    add-int/lit8 v4, v4, 0x1

    iput v4, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    .line 672
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3}, Lcom/example/m6shop/DishesActivity22;->addcart()V

    goto :goto_0

    .line 681
    :sswitch_2
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget v4, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    add-int/lit8 v4, v4, -0x1

    iput v4, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    .line 682
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3}, Lcom/example/m6shop/DishesActivity22;->delcart()V

    .line 683
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget v3, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    if-gtz v3, :cond_0

    .line 685
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iput v5, v3, Lcom/example/m6shop/DishesActivity22;->ind:I

    .line 686
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->tv_count:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$0(Lcom/example/m6shop/DishesActivity22;)Landroid/widget/TextView;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 687
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->iv_del:Landroid/widget/ImageView;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$1(Lcom/example/m6shop/DishesActivity22;)Landroid/widget/ImageView;

    move-result-object v3

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 690
    :cond_0
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->tv_count:Landroid/widget/TextView;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$0(Lcom/example/m6shop/DishesActivity22;)Landroid/widget/TextView;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget v5, v5, Lcom/example/m6shop/DishesActivity22;->ind:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 692
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3}, Lcom/example/m6shop/DishesActivity22;->getAll()V

    goto :goto_0

    .line 698
    :sswitch_3
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->sumcart:I
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$2(Lcom/example/m6shop/DishesActivity22;)I

    move-result v3

    if-lez v3, :cond_1

    .line 699
    const-string v3, "\u9357\u66de\ufffd?ACtivity"

    const-string v4, "\u74ba\u5ba0\u6d46\u7490\ue160\u58bf\u951f\ufffd"

    invoke-static {v3, v4}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 701
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 702
    .local v0, "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    iget-object v4, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget-object v4, v4, Lcom/example/m6shop/DishesActivity22;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 703
    const-string v3, "shopname"

    iget-object v4, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->shopname:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6shop/DishesActivity22;->access$3(Lcom/example/m6shop/DishesActivity22;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 704
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    .line 705
    const-class v4, Lcom/example/m6shop/CarOrderActivity;

    .line 704
    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 706
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3, v0}, Lcom/example/m6shop/DishesActivity22;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 708
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_1
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    const-string v4, "\u8d2d\u7269\u8f66\u4e3a\u7a7a"

    const-string v5, "\u8bf7\u9009\u62e9\u5546\u54c1"

    invoke-static {v3, v4, v5}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 715
    :sswitch_4
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->sumcart:I
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$2(Lcom/example/m6shop/DishesActivity22;)I

    move-result v3

    if-lez v3, :cond_3

    .line 720
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$4(Lcom/example/m6shop/DishesActivity22;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "userInfo"

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 722
    .local v1, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v3, "uid"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 724
    .local v2, "uid":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 726
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->context:Landroid/content/Context;
    invoke-static {v3}, Lcom/example/m6shop/DishesActivity22;->access$4(Lcom/example/m6shop/DishesActivity22;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6shop/LoginActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 728
    .restart local v0    # "intent":Landroid/content/Intent;
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    const/16 v4, 0x7b

    invoke-virtual {v3, v0, v4}, Lcom/example/m6shop/DishesActivity22;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 735
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_2
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 736
    .restart local v0    # "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    iget-object v4, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    iget-object v4, v4, Lcom/example/m6shop/DishesActivity22;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 737
    const-string v3, "shopname"

    iget-object v4, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    # getter for: Lcom/example/m6shop/DishesActivity22;->shopname:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6shop/DishesActivity22;->access$3(Lcom/example/m6shop/DishesActivity22;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 738
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    .line 739
    const-class v4, Lcom/example/m6shop/CarOrderActivity;

    .line 738
    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 740
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    invoke-virtual {v3, v0}, Lcom/example/m6shop/DishesActivity22;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 742
    .end local v0    # "intent":Landroid/content/Intent;
    .end local v1    # "sharedPreferences":Landroid/content/SharedPreferences;
    .end local v2    # "uid":Ljava/lang/String;
    :cond_3
    iget-object v3, p0, Lcom/example/m6shop/DishesActivity22$mOncliclistener;->this$0:Lcom/example/m6shop/DishesActivity22;

    const-string v4, "\u8d2d\u7269\u8f66\u4e3a\u7a7a"

    const-string v5, "\u8bf7\u9009\u62e9\u5546\u54c1"

    invoke-static {v3, v4, v5}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 662
    :sswitch_data_0
    .sparse-switch
        0x7f07000c -> :sswitch_0
        0x7f070043 -> :sswitch_2
        0x7f070045 -> :sswitch_1
        0x7f07004a -> :sswitch_4
        0x7f07004b -> :sswitch_3
    .end sparse-switch
.end method
